package controle;

public class TransacaoPedidoServicoPortTypeProxy implements controle.TransacaoPedidoServicoPortType {
  private String _endpoint = null;
  private controle.TransacaoPedidoServicoPortType transacaoPedidoServicoPortType = null;
  
  public TransacaoPedidoServicoPortTypeProxy() {
    _initTransacaoPedidoServicoPortTypeProxy();
  }
  
  public TransacaoPedidoServicoPortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initTransacaoPedidoServicoPortTypeProxy();
  }
  
  private void _initTransacaoPedidoServicoPortTypeProxy() {
    try {
      transacaoPedidoServicoPortType = (new controle.TransacaoPedidoServicoServiceLocator()).getTransacaoPedidoServicoServicePort();
      if (transacaoPedidoServicoPortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)transacaoPedidoServicoPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)transacaoPedidoServicoPortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (transacaoPedidoServicoPortType != null)
      ((javax.xml.rpc.Stub)transacaoPedidoServicoPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public controle.TransacaoPedidoServicoPortType getTransacaoPedidoServicoPortType() {
    if (transacaoPedidoServicoPortType == null)
      _initTransacaoPedidoServicoPortTypeProxy();
    return transacaoPedidoServicoPortType;
  }
  
  public controle.TransacaoPedidoServicoResponse obterNovoPedido(controle.TransacaoPedidoServicoRequest params) throws java.rmi.RemoteException{
    if (transacaoPedidoServicoPortType == null)
      _initTransacaoPedidoServicoPortTypeProxy();
    return transacaoPedidoServicoPortType.obterNovoPedido(params);
  }
  
  public controle.TransacaoSalvarPedidoServicoResponse salvarPedido(controle.TransacaoSalvarPedidoServicoRequest params) throws java.rmi.RemoteException{
    if (transacaoPedidoServicoPortType == null)
      _initTransacaoPedidoServicoPortTypeProxy();
    return transacaoPedidoServicoPortType.salvarPedido(params);
  }
  
  
}